package com.haiyangwang1.lesson5;

public abstract class Animal {
    private String food;
    private String sound;

    public Animal(String food, String sound) {
        this.setFood(food);
        this.setSound(sound);
    }

    public abstract void eat();
    public abstract void sound();

    public String getFood() {
        return food;
    }

    public void setFood(String food) {
        this.food = food;
    }

    public String getSound() {
        return sound;
    }

    public void setSound(String sound) {
        this.sound = sound;
    }
}
